package com.ping.redis;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author 浩子
 *
 */
@Configuration
@ConfigurationProperties(prefix="redis")
public class RedisConfiguration {

		//主机号
		private String host = "192.168.18.129";
		//端口
	    private int port = 6379;
	    
	    private int expire = 7200;
	    
	    private int timeout = 10000;
	    //密码
	    private String password = "123456";
		public String getHost() {
			return host;
		}
		public void setHost(String host) {
			this.host = host;
		}
		public int getPort() {
			return port;
		}
		public void setPort(int port) {
			this.port = port;
		}
		public int getExpire() {
			return expire;
		}
		public void setExpire(int expire) {
			this.expire = expire;
		}
		public int getTimeout() {
			return timeout;
		}
		public void setTimeout(int timeout) {
			this.timeout = timeout;
		}
		public String getPassword() {
			return password;
		}
		public void setPassword(String password) {
			this.password = password;
		}
	    
	    
	
}
